package com.xquant.trade.risk.entity;


import com.xquant.common.engine.xPP.request.CalcEngineParam;
import com.xquant.trade.utils.ResponseVo;
import com.xquant.trade.trade.entity.Trade;

import java.util.concurrent.Callable;


public class SceneThread implements Callable<SceneResponse> {

    private Trade trade;
    private String uCode;

    /**
     * 重新构造方法
     *
     * @param trade
     * @param uCode
     */
    public SceneThread(Trade trade, String uCode) {

        this.trade = trade;
        this.uCode = uCode;

    }

    @Override
    public SceneResponse call() throws Exception {
        SceneResponse sRes = new SceneResponse();
        sRes.setResponseVo(ResponseVo.success());
        sRes.setuCode(this.uCode);
        sRes.setTrade(this.trade);
        return sRes;
    }

}

